package csc.com.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import csc.com.dao.UserDAO;
import csc.com.repository.Users;

public class UserService {
	private UserDAO userDAO;

	public UserDAO getUserDAO() {
		return userDAO;
	}
	@Autowired
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}
	
	public Users getUser(String loginId, String password) {
		return userDAO.getUser(loginId, password);
	}
	public void addUser(Users user) {
		userDAO.addUser(user);
	}
	public List<Users> getUsers() {
		return userDAO.getUsers();
	}
}
